package com.xxxx.seckill.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * @author heyanfeng
 * @version 1.0
 * @description:  公共返回对象枚举
 * @date 2022/7/29 15:49
 */
@Getter
@ToString
@AllArgsConstructor
public enum  RespBeanEnum {

     //通用
     SUCCESS(200,"SUCCESS"),
     ERROR(500,"服务端异常"),


     //登录模块5002xx
     BIND_ERROR(50210,"参数校验异常"),
     LOGIN_ERROR(50211,"账户或密码不正确"),
     ACCESS_LIMIT_REACHED(50212,"111"),
     SESSION_ERROR(50213,"用户不存在"),
     MOBILE_ERROR(50214,"手机号格式不正确"),
     MOBILE_NOT_EXIST(500215, "手机号码不存在"),
     PASSWORD_UPDATE_FAIL( 500216, "密码更新失败"),

     //秒杀模块5005xx
     EMPTY_STOCK( 500500, "库存不足"),
     REPEATE_ERROR(500501,"商品每人限购一件"),
     REQUEST_ILLEGAL(500502,"请求非法,请重新尝试"),
     ERROR_CAPTCHA(500503,"验证码错误，请重新输入"),
     ACCESS_LIMIT_REAHCED(500504,"访问过于频繁，请稍后再试"),

     //订单模块5003xx
     ORDER_NOT_EXIST(500300,"订单信息不存在")
     ;
     private final Integer code;
     private final String message;
}
